package korkd.tower;

import java.util.LinkedList;

import android.content.Intent;

public class Player {
	private int mID;
	private int mGold;
	private int mLevel;
	private int mControlledCastles;
	private LinkedList<Castle> mCastles;
	private Game mGame;
	
	Player(Game g) {
		mID = 1;
		mGold = 0;
		mLevel = 1;
		mControlledCastles = 1;
		mCastles = new LinkedList<Castle>();
		mGame = g;
	}
	
	public int getGold()
	{
		for (Castle c : mCastles)
		{
			mGold += c.getGoldRate();
		}
		return mGold;
	}
	
	
	public void addCastle(Castle pCastle)
	{
		mCastles.add(pCastle);
	}
}
